﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="duty_new.aspx.cs" Inherits="AnyOffice.general.system.attend.duty_new" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>新建排班类型</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<script src="/aspnet_client/core/function.js"></script>
		<script Language="JavaScript">
function CheckForm()
{
   if(document.Form1.txtDutyName.value=="")
   {
	alert("排班类型说明不能为空！");
	document.Form1.txtDutyName.focus();
    return (false);
   }
   
    if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime1.value) && (document.Form1.txtDutyTime1.value != ''))
   {
	 alert("第一次登记时间不正确！");
	 document.Form1.txtDutyTime1.focus();
	 return (false);
   }
   
   if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime2.value) && (document.Form1.txtDutyTime2.value != ''))
   {
	 alert("第二次登记时间不正确！");
	 document.Form1.txtDutyTime2.focus();
	 return (false);
   }
   
   if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime3.value) && (document.Form1.txtDutyTime3.value != ''))
   {
	 alert("第三次登记时间不正确！");
	 document.Form1.txtDutyTime3.focus();
	 return (false);
   }
   
   if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime4.value) && (document.Form1.txtDutyTime4.value != ''))
   {
	 alert("第四次登记时间不正确！");
	 document.Form1.txtDutyTime4.focus();
	 return (false);
   }
   
   if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime5.value) && (document.Form1.txtDutyTime5.value != ''))
   {
	 alert("第五次登记时间不正确！");
	 document.Form1.txtDutyTime5.focus();
	 return (false);
   }
   
   if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime6.value) && (document.Form1.txtDutyTime6.value != ''))
   {
	 alert("第六次登记时间不正确！");
	 document.Form1.txtDutyTime6.focus();
	 return (false);
   }
   return (true);
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/attendance.gif"  align="absMiddle"><span class="big3"> 新建排班类型</span>
					</td>
				</tr>
			</table>
			<br>
			<table width="330" border="0" align="center" cellpadding="4" cellspacing="4" style="BORDER-RIGHT: #ff6633 1px dashed; BORDER-TOP: #ff6633 1px dashed; FONT-WEIGHT: bold; BORDER-LEFT: #ff6633 1px dashed; COLOR: #ff6633; BORDER-BOTTOM: #ff6633 1px dashed; BACKGROUND-COLOR: #eeeeee"
				title="提示信息框">
				<tr>
					<td>说明：上下班登记时间范围在 00:00:00 至 23:59:59 之间，请按时间顺序指定</td>
				</tr>
			</table>
			<br>
			<table border="0" width="500" cellpadding="2" cellspacing="1" align="center" class="small"
				bgcolor="#000000">
				<tr>
					<td nowrap class="TableData">
						排班类型说明：</td>
					<td class="TableData">
						<input type="text" size="25" maxlength="100" class="BigInput" id="txtDutyName" runat="server">
					</td>
				</tr>
				<tr>
					<td nowrap class="TableData">
						第1次登记：</td>
					<td class="TableData">
						<input type="text" class="BigInput" size="8" maxlength="8" id="txtDutyTime1" runat="server">&nbsp;
						<select class="BigSelect" id="sltDutyType1" runat="server">
							<option value="1" selected>上班</option>
							<option value="2">下班</option>
						</select>
					</td>
				</tr>
				<tr>
					<td nowrap class="TableData">
						第2次登记：</td>
					<td class="TableData">
						<input type="text" class="BigInput" size="8" maxlength="8" id="txtDutyTime2" runat="server">&nbsp;
						<select class="BigSelect" id="sltDutyType2" runat="server">
							<option value="1" selected>上班</option>
							<option value="2">下班</option>
						</select>
					</td>
				</tr>
				<tr>
					<td nowrap class="TableData">
						第3次登记：</td>
					<td class="TableData">
						<input type="text" class="BigInput" size="8" maxlength="8" id="txtDutyTime3" runat="server">&nbsp;
						<select class="BigSelect" id="sltDutyType3" runat="server">
							<option value="1" selected>上班</option>
							<option value="2">下班</option>
						</select>
					</td>
				</tr>
				<tr>
					<td nowrap class="TableData" height="28">
						第4次登记：</td>
					<td class="TableData" height="28">
						<input type="text" class="BigInput" size="8" maxlength="8" id="txtDutyTime4" runat="server">&nbsp;
						<select class="BigSelect" id="sltDutyType4" runat="server">
							<option value="1" selected>上班</option>
							<option value="2">下班</option>
						</select>
					</td>
				</tr>
				<tr>
					<td nowrap class="TableData">
						第5次登记：</td>
					<td class="TableData">
						<input type="text" class="BigInput" size="8" maxlength="8" id="txtDutyTime5" runat="server">&nbsp;
						<select class="BigSelect" id="sltDutyType5" runat="server">
							<option value="1" selected>上班</option>
							<option value="2">下班</option>
						</select>
					</td>
				</tr>
				<tr>
					<td nowrap class="TableData">
						第6次登记：</td>
					<td class="TableData">
						<input type="text" class="BigInput" size="8" maxlength="8" id="txtDutyTime6" runat="server">&nbsp;
						<select class="BigSelect" id="sltDutyType6" runat="server">
							<option value="1" selected>上班</option>
							<option value="2">下班</option>
						</select>
					</td>
				</tr>
				<TR>
					<TD class="TableData" noWrap>公休日：</TD>
					<TD class="TableData">
						<asp:CheckBoxList id="cblGeneral" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"
							RepeatColumns="5">
							<asp:ListItem Value="1">星期一</asp:ListItem>
							<asp:ListItem Value="2">星期二</asp:ListItem>
							<asp:ListItem Value="3">星期三</asp:ListItem>
							<asp:ListItem Value="4">星期四</asp:ListItem>
							<asp:ListItem Value="5">星期五</asp:ListItem>
							<asp:ListItem Value="6">星期六</asp:ListItem>
							<asp:ListItem Value="0">星期日</asp:ListItem>
						</asp:CheckBoxList></TD>
				</TR>
				<tr align="center" class="TableControl">
					<td colspan="2" nowrap>
						<input type="submit" value="确定" class="BigButton" onclick="return CheckForm();">&nbsp;&nbsp;
						<input type="button" value="返回" class="BigButton" onClick="location='duty.aspx'">
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
